<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'proveedor-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Campos con <span class="required">*</span> son obligatorios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'ruc'); ?>
		<?php echo $form->textField($model,'ruc',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'ruc'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tipo_persona'); ?>
		<?php echo $form->dropDownList($model,'tipo_persona',array('JURIDICA'=>'JURIDICA','NATURAL'=>'NATURAL'),array('prompt'=>'Seleccionar')); ?>		
		<?php echo $form->error($model,'tipo_persona'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'razon_social'); ?>
		<?php echo $form->textField($model,'razon_social',array('size'=>60,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'razon_social'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'correo'); ?>
		<?php echo $form->textField($model,'correo',array('size'=>60,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'correo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contacto'); ?>
		<?php echo $form->textField($model,'contacto',array('size'=>60,'maxlength'=>300)); ?>
		<?php echo $form->error($model,'contacto'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'CREAR' : 'GUARDAR'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->